package common

type GetLocationResp []*GetLocation

type GetLocation struct {
	Name     string                `json:"name,omitempty"`
	Code     string                `json:"code,omitempty"`
	Children []GetLocationChildren `json:"children,omitempty"`
}

type GetLocationChildren struct {
	Name string `json:"name,omitempty"`
	Code string `json:"code,omitempty"`
}

type JmLocations struct {
	IsDefault bool   `json:"isDefault"`
	Leaf      bool   `json:"leaf"`
	Parent    string `json:"parent"`
	Text      string `json:"text"`
	Value     string `json:"value"`
}

type JmLocationsResult struct {
	Area []JmLocations `json:"Area"`
}

type GetJmLocationResponse struct {
	Result  JmLocationsResult `json:"result"`
	Success bool              `json:"success"`
}
